Skip to content

fixes a bug found related to issue246. Hopefully the only bug. It ca…#247

Merged
gr5 merged 7 commits intomasterfrom
issue246
Oct 12, 2025
Merged

fixes a bug found related to issue246. Hopefully the only bug. It ca…#247
gr5 merged 7 commits intomasterfrom
issue246

Conversation

@gr5
Copy link
Collaborator

@gr5 gr5 commented Oct 2, 2025

Fixes #246 a bug that occurs in "test stand astig removal"

crashes when using test stand astig removal tool
@gr5 gr5 marked this pull request as draft October 2, 2025 16:22
@atsju
Copy link
Collaborator

atsju commented Oct 11, 2025

I know I need to review. I keep this one for later.

Copy link
Collaborator

@atsju atsju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. This is valid fix. Thank you.
I do not approve as there are 2 small comments to manage

zernikepolar.cpp Outdated
}

if(nbTerms > 35)
if(nbTerms > 35) // shouldn't this be 36?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes correct. and it should also be modified for 8 and 24.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gr5 changing this or leaving as is ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops. Just checked in the fix.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it was just suboptimal but could not cause issue. Good to have corrected the code though

Co-authored-by: Julien Staub <atsju2@yahoo.fr>
@gr5
Copy link
Collaborator Author

gr5 commented Oct 12, 2025

I think I should get rid of most of the logging as well.

@atsju
Copy link
Collaborator

atsju commented Oct 12, 2025

I think I should get rid of most of the logging as well.

they are at "trace" level. It's meant for exactly that. I would not remove them. Default users shall not log at trace level unless they have problems

@gr5
Copy link
Collaborator Author

gr5 commented Oct 12, 2025

I think I should get rid of most of the logging as well.

they are at "trace" level. It's meant for exactly that. I would not remove them. Default users shall not log at trace level unless they have problems

oh. I already got rid of many of them. Don't they slow down execution slightly? Even if log is not on trace mode?

@atsju
Copy link
Collaborator

atsju commented Oct 12, 2025

I think I should get rid of most of the logging as well.

they are at "trace" level. It's meant for exactly that. I would not remove them. Default users shall not log at trace level unless they have problems

oh. I already got rid of many of them. Don't they slow down execution slightly? Even if log is not on trace mode?

I don't know how much. Possibly yes.

@gr5 gr5 marked this pull request as ready for review October 12, 2025 23:19
@gr5 gr5 merged commit d422256 into master Oct 12, 2025
14 checks passed
@atsju atsju deleted the issue246 branch October 13, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

version 8.0.0 crashes when doing test stand astig removal

2 participants

Comments